<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            margin: 0;
            padding: 0;
        }
        table{
            width: 1000px;
            margin: auto;
        }
        table thead{
            background: #31bc86;
            color: #FFFFFF;
            background-color: #31bc86;
            font-weight: bold;
            color: #fff;
            white-space: nowrap;
        }

        td, th {
            padding: 0.75em 1.5em;
            text-align: left;
        }
        table tbody tr td{
            color: #7C8D87;
        }
        table tr td{
            padding: 20px;
        }
        tbody>tr:nth-child(odd){
            background: #f2f2f2;
        }

        #tab1 tbody tr:hover{
            background-color: rgba(129,208,177,.3);
        }
        #tab2{
            position: absolute;
            top:0px;
            left: 50%;
            margin-left: -500px;
        }
        #tab2 thead{
            box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
    </style>
</head>
<body>

    <table id="tab1" border="0" cellspacing="0" cellpadding="0">
        <thead>
           <tr>
               <th>Name</th>
               <th>Email</th>
               <th>Phone</th>
               <th>Mobile</th>
           </tr>
        </thead>
        <tbody>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>

        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr><tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>
        <tr>
            <td>Gary Coleman</td>
            <td>gary.coleman21@example.com</td>
            <td>(398)-332-5385</td>
            <td>(888)-677-3719</td>
        </tr>

        </tbody>
    </table>
    <table id="tab2" border="0" cellspacing="0" cellpadding="0" >
        <thead>
            <tr>
                <th width="190">Name</th>
                <th width="430">Email</th>
                <th width="213">Phone</th>
                <th width="214">Mobile</th>
            </tr>

        </thead>

    </table>

    <script type="text/javascript" src="js/util.js"></script>
    <script type="text/javascript">
      var oTable1 = document.getElementById('tab1');
      var oTable2 = document.getElementById('tab2');

      window.onscroll = function (ev) {
          var oEvent = ev || event;

          var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
          var iTop = scrollTop;

          startMove(oTable2,{top:iTop});


      }




    </script>
</body>
</html>